package com.gun.management.module.task.enums;

public enum FunctionTypeEnum {

    SHARETO(1, "shareTo", "分享好友或朋友圈"),
    JUMPTOAPPSTORE(2, "jumpToAppStore", "跳转应用市场"),
    PUSHWINDOW(3, "pushWindow", "跳转APP内页"),
    GETSESSIONID(4, "getSessionID", "授权登录"),
    LOGINEXCEPTIONHANDLE(5, "loginExceptionHandle", "登录异常处理");

    private final int id;

    private final String value;
    private final String name;


    FunctionTypeEnum(int id, String value, String name) {
        this.id = id;
        this.value = value;
        this.name = name;
    }


    // 根据id查找对应的FunctionType枚举常量
    public static FunctionTypeEnum findById(int id) {
        for (FunctionTypeEnum item : FunctionTypeEnum.values()) {
            if (item.getId() == id) {
                return item;
            }
        }
        return null; // 如果未找到，返回null
    }


    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }



}
